package com.macro.mall.bean.vo;


import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "应答报文")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResposeVO<T> {

    @ApiModelProperty(value = "应答码",required = false,position = 0)
    private String respCode = "0000";

    @ApiModelProperty(value = "应答描述",required = false,position = 1)
    private String respDesc = "SUCCESS";

    @ApiModelProperty(value = "应答报文体",required = false,position = 2)
    private T result;

    private Long totalCount;

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    @Override
    public String toString() {
        return "ResposeVO{" +
                "respCode='" + respCode + '\'' +
                ", respDesc='" + respDesc + '\'' +
                ", result=" + result +
                '}';
    }
}
